package com.scarecrow.olga.error {
	import com.scarecrow.olga.entity.IEntity;
	import com.scarecrow.olga.error.VerboseError;
	/**
	 * ...
	 * @author Santiago.J.Elizalde
	 */
	public class EntityRegistryError extends VerboseError {
		
		private var _entity:IEntity;
		
		public function EntityRegistryError(error:String, cause:String, relatedEntity:IEntity) {
			_entity = relatedEntity;
			super(error, cause, {ENTITY_ID:_entity.id, ENTITY_NAME:_entity.name});
		}
		
		public function get entity():IEntity {
			return _entity;
		}
	}
}